import request from '/@/utils/request';

export const patientDoctorCount = (doctorUid:string) => {
	return request({
		url: '/patient/patientDoctor/count/'+doctorUid,
		method: 'get',
	});
};

export const patientDoctorCountcare = (doctorUid:string) => {
	return request({
		url: '/patient/patientDoctor/count/care/'+doctorUid,
		method: 'get',
	});
};

export const patientDoctoryesterdaynumber = (doctorUid:string) => {
	return request({
		url: '/patient/patientDoctor/blood-pressure/count/'+doctorUid,
		method: 'get',
	});
};

export const patientDoctoryesterdayabnormal = (doctorUid:string) => {
	return request({
		url: '/patient/patientDoctor/blood-pressure/yesterday/abnormal/count/'+doctorUid,
		method: 'get',
	});
};

export const persureHeartRate = (doctorUid:string) => {
	return request({
		url: '/patient/persureHeartRate/recent-ten-days/'+doctorUid,
		method: 'get',
	});
};



export const persureHeartRatetoday = (doctorUid:Object) =>{
  return request({
    url: '/patient/persureHeartRate/today_consecutive_exceptions',
    method: 'get',
    params: {
			doctorUid
		},
  });
}

export const persureHeartRatecountsdhcareclassification= (doctorUid:Object) =>{
  return request({
    url: '/patient/persureHeartRate/count-sdh-careclassification',
    method: 'get',
    params: {
			doctorUid
		},
  });
}


export const carepressureAnomaly = (doctorUid:Object) =>{
  return request({
    url: '/patient/persureHeartRate/get_anomaly_stats_by_doctorUid_care',
    method: 'get',
    params: {
			doctorUid
		},
  });
}


export const sysMessage = (doctorId:Object) =>{
  return request({
    url: '/patient/sysMessage/recentMsg',
    method: 'get',
    params: {
			doctorId
		},
  });
}

export const carepatientheartRate = (doctorUid:string) => {
	return request({
		url: '/patient/heartRateLogs/' + doctorUid + '/carepatient/heartRate/stats',
		method: 'get',
	});
};

export const carecountcpatientshistory = (doctorUid:string) => {
	return request({
		url: '/patient/aiPreDiagnosis/count-cpatients-history/'+doctorUid,
		method: 'get',
	});
};

export const carecountcpatients = (doctorUid:string) => {
	return request({
		url: '/patient/aiPreDiagnosis/count-patients/' + doctorUid,
		method: 'get',
	});
};

export const carecountcpatientBase = (doctorUid:string) => {
	return request({
		url: '/patient/patientBase/'+doctorUid+'/patient/bycarestats',
		method: 'get',
	});
};


export const persureHeartRatecountsdhclassification= (doctorUid:Object) =>{
  return request({
    url: '/patient/persureHeartRate/count-sdh-classification',
    method: 'get',
    params: {
			doctorUid
		},
  });
}



export const countpatientshistory = (doctorUid:string) => {
	return request({
		url: '/patient/aiPreDiagnosis/newcount-patients-history/'+doctorUid,
		method: 'get',
	});
};

// 医生二维码
export const doctorqrcode = (doctorUid:string) => {
	return request({
			url: '/doctor/qrcode/generate',
			method: 'post',
			data: {doctorUid},
	});
};


export const countpatients = (doctorUid:string) => {
	return request({
		url: '/patient/aiPreDiagnosis/countnocare-patients/'+doctorUid,
		method: 'get',
	});
};


export const countpatientBase = (doctorUid:string) => {
	return request({
		url: '/patient/patientBase/'+doctorUid+'/patient/stats',
		method: 'get',
	});
};

export const patientheartRate = (doctorUid:string) => {
	return request({
		url: '/patient/heartRateLogs/' + doctorUid + '/patient/heartRate/stats',
		method: 'get',
	});
};

export const pressureAnomaly = (doctorUid:Object) =>{
  return request({
    url: '/patient/persureHeartRate/get_anomaly_stats_by_doctorUid',
    method: 'get',
    params: {
			doctorUid
		},
  });
}
